package com.example.livedata.entity;


import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.Ignore;
import android.arch.persistence.room.PrimaryKey;
import android.graphics.Bitmap;

@Entity(tableName = "users")
//网上文档  http://blog.csdn.net/hubinqiang/article/details/73012353
public class UserInfo {

    @PrimaryKey
    public int id;

    @ColumnInfo(name = "nikeName")
    public String nikeName;

    @ColumnInfo(name = "sex")
    public String sex;

    @ColumnInfo(name = "age")
    public int age;

    //可以不写ColumnInfo 默认
    public String photoUrl;

    @Ignore//过滤参数
    public Bitmap bitmap;
}
